vTPM: Fix Atmel timeout bug.
authorEmil Condrea <emilcondrea@gmail.com>
Thu, 30 Oct 2014 13:05:30 +0000 (15:05 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 14 Nov 2014 10:13:23 +0000 (10:13 +0000)
commitf804eee318eeeb2fa5202f155c360ede02010d20
treeaab6d7674f35b57711b8888ef23d2176bae7c27b
parente9911be0a5135af26fb6c435089beff854e283f8
vTPM: Fix Atmel timeout bug.

Some versions of Atmel TPMs provide invalid values for TPM_CAP_PROP_TIS_TIMEOUT query.
Because timeouts are invalid, every other command after tpm_get_timeouts will fail.
It is a known issue and it was fixed recently in linux kernel tpm_tis.c on 2014-07-29.
This patch does not allow timeouts to be less than standard values.
I tested it on a Dell Latitude E5520 and after making the changes I was able to start vtpmmgr-stubdom.

Signed-off-by: Emil Condrea <emilcondrea@gmail.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
extras/mini-os/tpm_tis.c